There was an infinite loop when parsing invalid text after having parsed
a color in the border shorthand. See attached testcase for an example.
if (values[2] == NULL)
return FALSE;
}
+ else
+ {
+ /* We parsed and there's still stuff left?
+ * Pretend we didn't notice and let the normal code produce
+ * a 'junk at end of value' error */
+ break;
+ }
}
while (!value_is_done_parsing (parser));
border.ref.css \
border-color-currentcolor.css \
border-color-currentcolor.ref.css \
+ border-infloop-3.12.css \
+ border-infloop-3.12.errors \
+ border-infloop-3.12.ref.css \
border-radius.css \
border-radius.errors \
border-radius.ref.css \
--- /dev/null
+* {
+ border-bottom: tomato dot;
+}
--- /dev/null
+border-infloop-3.12.css:2: error: GTK_CSS_PROVIDER_ERROR_SYNTAX